import request from '@/utils/request'

//交易列表
/**
 * 获取交易列表
 * @param {page,limit,keywords,is_buy} data 
 * @returns 
 */

export function getTransitonList(data) {
    return request({
        url: '/admin/bidding/biddingList',
        method: 'post',
        data
    })
}

export function checkGoods(data) {
    return request({
        url: '/admin/bidding/getGoods',
        method: 'post',
        data
    })
}

export function cashList(data) {
    return request({
        url: '/admin/bidding/withdrawalList',
        method: 'post',
        data
    })
}

export function cashZFB(data) {
    return request({
        url: '/admin/bidding/agreeAli',
        method: 'post',
        data
    })
}

export function defaultPay(data) {
    return request({
        url: '/admin/bidding/refusePost',
        method: 'post',
        data
    })
}

export function getTransitonSquareList(data) {
    return request({
        url: '/admin/bidding/biddingSquare',
        method: 'post',
        data
    })
}

export function justBuyIt(data) {
    return request({
        url: '/admin/bidding/buyPost',
        method: 'post',
        data
    })
}

export function getAutoInfo(data) {
    return request({
        url: '/admin/config/configBidding',
        method: 'post',
        data
    })
}

export function setAuto(data) {
    return request({
        url: '/admin/config/editBiddingConfig',
        method: 'post',
        data
    })
}